package site.oldpei.manage.nomal.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import site.oldpei.manage.nomal.service.BatchService;

@RestController
@RequestMapping("/batch")
public class BatchController {
    @Autowired
    private BatchService batchService;

    @GetMapping("scan")
    public void scanVedio(String path) throws Exception {
        System.out.println(path);
        batchService.scan(path);
    }
}
